/**
 * Created by zhaoyanzhi on 16-9-19.
 */
app.controller("landingPage",function($scope,$location){
    $scope.jumpRegistrationPage=function(){
        $location.path("/registrationPage");
    };
    $scope.jumpProductListPage=function(){
        $location.path("/productListPage");

    }
    $scope.landing=function(name,password){
        AV.User.logIn(name, password).then(
            $scope.jumpProductListPage(),
            function(error){
                alert("用户名和密码不正确!")
        })
    }
})
